/**  
 * @Title: RegUtil.java
 * @Package com.limit.utils
 * @author maoyun(maoyun0903@163.com)
 * @date 2014-3-28 下午09:45:21
 * @version V1.0
 */ 
package com.limit.utils;

import java.util.regex.Pattern;

/** 
 * 正则匹配<br/>
 * @author maoyun(maoyun0903@163.com)
 * @date 2014-3-28 下午09:45:21 
 * @version V1.0
 */

public class RegUtil {
	
	
	/**
	 * string匹配reg正则,
	 */
	public static boolean regString(String reg , String string){
		
		return Pattern.compile(reg).matcher(string).find();
	}
	
	
	
}
